package com.example.cart_system.mapper;

import com.example.cart_system.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {
    //得到所有的用户订单
    @Select("select * from `order` where usrid = #{usrid} order by otime")
    public List<Order> getOrderList(String usrid);
}
